package cn.ly.stack;

import cn.ly.util.ArithmeticTool;

public class StackApp {
	
	public static void main(String[] args) {
		StackX theStack = new StackX(10);
		for(int i=0; i<10; i++){
			theStack.push(ArithmeticTool.getIntRandom0to100());
		}

		System.out.println(theStack.isFull());
		System.out.println(theStack.peek());
		
		while(!theStack.isEmpty()){
			System.out.println(theStack.pop());
		}
		
		
	}

}
